package com.atguigu.eduservice.remoteProcedureCalls;

import com.atguigu.eduservice.remoteProcedureCalls.ExceptionImpl.OrderClientExceptionImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-order", fallback = OrderClientExceptionImpl.class)
public interface OrderClient {
    //根据课程id、用户id、查询订单的支付状态
    @GetMapping("/eduorder/order/isBuyCourse/{courseid}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseid") String courseId, @PathVariable("memberId") String memberId);
}
